package com.spring;

import com.spring.service.WelcomeService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * <h1>
 *
 * </h1>
 *
 * @author MarkerCCC
 * @date 2022/3/12 - 17:37
 * @since 2022/3/12 - 17:37 星期六 by MarkerCCC markerccc@163.com
 */
public class Main {
	public static void main(String[] args) {
		ApplicationContext applicationContext = new FileSystemXmlApplicationContext("E:\\IdeaProjects\\spring-framework-5.2.19.RELEASE\\spring-demo\\src\\main\\resources\\spring\\spring-config.xml");
		WelcomeService welcomeService = (WelcomeService) applicationContext.getBean("welcomeService");
		welcomeService.sayHello("强大的Spring框架");
	}
}
